-------------------------
0_Data Generation Code

Candidate Number: 1048238
-------------------------

Contents:
------

Generate CSV.py
- This code concatenates the individual datasets for each drug-concentration combination - generating CSV files used for training and testing the classification algorithms
- The path to the data must be modified to reflect the path to the directory with all the individual drug files - 88 for ToR ORd model, 94 for the ORd model

------

ORd generate_dataset.m and ToR generate_dataset.m
- These files take the EADs List (Early After Depolarisations - a file with the labels of all traces) and the Action Potential (and Calcium Transient, if applicable) biomarkers and combines the two for every drug-concentration combination possible.
- It saves this data to a specified location - it is advisable to keep the concentrations separate while saving - the code handles this, while also naming the files appropriately.

------

ORd generate_hand_drawn_data.m and  ToR generate_hand_drawn_data.m
- These files read a CSV file with the required drug-concentration combinations in and generate the individual csv files accordingly.
- The format of the hand-drawn samples CSV file is important and a sample for both cardiac models is provided in the folder titled ‘Hand-Drawn Table’.
- The CSV file has 3 columns - a description column (users can modify this as they wish - we have used the file name), the drug name column and the concentration column.

------
Usage for the .py file:
------
> python Generate CSV.py

------
Dependencies for the .py file:
------
This code has been tested in an environment, with:
* Python 3.8
* pandas 1.1.5
* glob
* tqdm

------
Usage for the Matlab files:
------
These files need to be run in a MATLAB environment - these have specifically been tested in the online version of MATLAB, licence courtesy of the University of Oxford.

------------------------------------------------------------------------------------------
